<!--
 * @Description:
 * @Author: dh
 * @Date: 2021-12-13 20:39:43
 * @LastEditors: dh
 * @LastEditTime: 2022-06-28 11:06:48
-->
<template>
	<el-dialog class="delete-dialog" width="300px" :title="title" :visible="isShow" destroy-on-close>
		<el-input v-model="content" />
		<div slot="footer" class="dialog-footer">
			<el-button @click="confirm">{{ confirmText }}</el-button>
			<el-button type="info" @click="cancel">{{ cancelText }}</el-button>
		</div>
	</el-dialog>
</template>
<script>
export default {
	props: {},
	data() {
		return {
			isShow: true,
			title: "提示",
			confirmText: "确定",
			cancelText: "取消",
			content: "123123123",
			resolve: null,
			reject: null,
		};
	},
	methods: {
		confirm() {
			this.isShow = false;
			this.resolve();
		},
		cancel() {
			this.isShow = false;
			this.reject();
		},
	},
};
</script>
<style scoped></style>
